package com.mediaideas.videoengine.utils;

/**
 * Created by Jonathan Kranz on 2016/2/24.
 */
public class XYJException extends Exception {

    private int mErrCode;
    private String mErrMsg = "";

    public XYJException(int errCode) {
        super("Error occurred: " + errCode);
        mErrCode = errCode;
    }

    public XYJException(String errMsg) {
        super("Error occurred:" + " errMsg:" + errMsg);
        mErrMsg = errMsg;
    }

    public XYJException(int errCode, String errMsg) {
        super("Error occurred: " + errCode + " /errMsg:" + errMsg);
        mErrCode = errCode;
        mErrMsg = errMsg;
    }

    public XYJException(int errCode, Throwable throwable) {
        super("Error occurred: " + errCode, throwable);
        mErrCode = errCode;
    }

    public int getErrCode() {
        return mErrCode;
    }

    public String getErrMsg() {
        return mErrMsg;
    }
}
